import React from 'react';
import classNames from 'classnames';

export interface IconProps {
	themeDark?: boolean;
	type?: boolean;
	className?: string;
	alt?: string;
	[propName: string]: any;
}
export default class Icon extends React.Component<IconProps, any> {
	getBase64ImgSrc = (type: boolean, themeDark: boolean): string => {
		let src = '';
		if (themeDark) {
			// 全屏状态
			if (type) {
				src =
					'';
			} else {
				src =
					'';
			}
		} else {
			// 全屏状态
			if (type) {
				src =
					'';
			} else {
				src =
					'';
			}
		}
		return src;
	};
	render() {
		const { themeDark, type, ...otherProps } = this.props;
		const cls = classNames('dtc-fullscreen-icon', otherProps.className);
		const src = this.getBase64ImgSrc(type, themeDark);
		return (
			<img
				{...otherProps}
				data-testid="test_myIcon"
				className={cls}
				alt={otherProps.alt}
				src={src}
			/>
		);
	}
}
